package br.com.ep.projeto.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.ep.generico.core.GenericService;
import br.com.ep.projeto.entity.Estado;
import br.com.ep.projeto.repository.IEstadoRepository;

@Service("estadoService")
public class EstadoService extends GenericService<Estado> {

	@Autowired
	private IEstadoRepository repository;
	

	@Override
	public void setGenericRepository() {
		genericRepository = repository;	
	}
	
	@Override
	public Estado newInstance() {
		return new Estado();
	}
	
}
